package com.zmn.plat.model.vo.channel;

import com.zmn.common.utils.pager.Operator;

import java.util.Objects;

/**
 * @author tanghongjun
 * @version v1.0
 * @类说明：
 * @since 2018/11/30 11:30
 */
public class ChannelServAreaVO extends Operator {

    private Integer channelId;

    private String cityIds;

    private String cityNames;

    private String flag;

    private Integer scope;

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public String getCityIds() {
        return cityIds;
    }

    public void setCityIds(String cityIds) {
        this.cityIds = cityIds;
    }

    public String getCityNames() {
        return cityNames;
    }

    public void setCityNames(String cityNames) {
        this.cityNames = cityNames;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public Integer getScope() {
        return scope;
    }

    public void setScope(Integer scope) {
        this.scope = scope;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null) {
            return false;
        }
        if (getClass() != o.getClass()) {
            return false;
        }
        ChannelServAreaVO that = (ChannelServAreaVO) o;
        return Objects.equals(getChannelId(), that.getChannelId()) && Objects.equals(getCityIds(), that.getCityIds()) && Objects.equals(getCityNames(), that.getCityNames()) && Objects.equals(getFlag(), that.getFlag()) && Objects.equals(getScope(), that.getScope());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getChannelId(), getCityIds(), getCityNames(), getFlag(), getScope());
    }

    @Override
    public String toString() {
        return "MemProductCityVO{" + "channelId=" + channelId + ", cityIds='" + cityIds + '\'' + ", cityNames='" + cityNames + '\'' + ", flag='" + flag + '\'' + ", scope=" + scope + '}';
    }
}